/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Date;

/**
 *
 * @author Phillipp
 */
public class SemesterAbroad {
    boolean isBachelor;
    int numberOfSemester;
    University abroadUniversity;
    String associateAbroad, country;
    Date depature;
    String contactData, specialInformation;
    //ExchangeRatio exchangeRatio
    Module module;

    public SemesterAbroad(boolean isBachelor, int numberOfSemester, 
            University abroadUniverstity, String associateAbroad, String country,
                        Date depature, String contactData, String specialInformation) {
        this.isBachelor = isBachelor;
        this.numberOfSemester = numberOfSemester;
        this.abroadUniversity = abroadUniverstity;
        this.associateAbroad = associateAbroad;
        this.country = country;
        this.depature = depature;
        this.contactData = contactData;
        this.specialInformation = specialInformation;
    }
    
    public void addModuleToSemester(Course course1, Course course2, Course course3){
        if(course1 != null && course2 == null){
            module = new Module(course1);
        }
        else if(course1 != null && course2 != null && course3 == null){    
            module = new Module(null, null);
        }
        else if(course1 != null && course2 != null && course3 != null){
            module = new Module(null, null, null);
        }
           
        else {
            System.out.println("Error while adding the Module to the Semester!");
            System.out.println("Please check your input data");
        }
    }

   
    public void setIsBachelor(boolean isBachelor){
        this.isBachelor = isBachelor;
    }
    
    public boolean getIsBachelor(){
        return isBachelor;
    }
     public void setNumberOfSemester(int numberOfSemester){
        this.numberOfSemester = numberOfSemester;
    }
    
    public int getNumberOfSemester(){
        return numberOfSemester;        
    }   
    public void setAbroadUniversity(University abroadUniversity){
        this.abroadUniversity = abroadUniversity;        
    }
    
    public University getAbroadUniversity(){
        return abroadUniversity;
    }
    
    public void setAssociateAbroad(String associateAbroad){
        this.associateAbroad = associateAbroad;        
    }
    
    public String getAssociateAbroad(){
        return associateAbroad;
    }   
    
    public void setCountry(String country){
        this.country = country;
    }
    
    public String getCountry(){
        return country;
    }   
    
    public void setDepature(Date depature){
        this.depature = depature;
    }
    
    public Date getDepature(){
        return depature;
    }   
    
    public void setContactData(String contactData){
        this.contactData = contactData;
    }
    
    public String getContactData(){
        return contactData;
    }
           
    public void setSpecialInformation(String specialInformation){
        this.specialInformation = specialInformation;
    }
    
    public String getSpecialInformation(){
        return specialInformation;
    }       
}
